extends layout

block body
  .content(ng-view)

block script
  script.
    var app = angular.module('PopTile', ['ngRoute']);
  
    app.config(function($routeProvider){
      $routeProvider
        .when('/index',
        {   
          controller: 'indexCtrl',
          templateUrl: '/index'
        })  
        .when('/game',
        {   
          controller: 'gameCtrl',
          templateUrl: '/game'
        })  
        .otherwise({ redirectTo: '/index' })
    }); 

    app.controller('gameCtrl', function ($scope) {
      $scope.count = '0000';
    });
